package top.lenjon.lib.service;

import top.lenjon.lib.model.LoginModel;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author whz
 * @Date 2020/11/8 22:51
 **/
public interface LoginService {
    String generateToken(LoginModel loginModel);

    boolean loginUser(LoginModel loginModel);

    LoginModel checkToken(HttpServletRequest request);

    boolean logout(HttpServletRequest request);
}
